package com.tnr.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.SessionAttribute;


import com.tnr.base.Constants;
import com.tnr.base.CurrUser;


@RestController
@RequestMapping("/safty/home")

public class HomeController {
	
	
	
	
	@GetMapping("/curruser")	
	public CurrUser getCurrUser(@SessionAttribute(Constants.SESSION_ATTR_CURR_USER) CurrUser currUser) {
		return currUser;
	}


}
